import Vue from 'vue'
import VueRouter from 'vue-router'

const Home = () => import('views/home/Home');
const WorkCategory = () => import('views/workcategory/workcategory');
const WorkSource = () => import('views/workSource/workSource');
const WorkTake = () => import('views/workTake/workTake');
const WorkRate = () => import('views/workRate/workRate');


// 1.安装插件
Vue.use(VueRouter);

// 2.创建router
const routes = [
    {
        path: '',
        redirect: '/workTake'
    },
    // {
    //     path: '/home',
    //     component: Home
    // },
    // {
    //     path: '/workCategory',
    //     component: WorkCategory
    // },
    // {
    //     path: '/workSource',
    //     component: WorkSource
    // },
    {
        path: '/workTake',
        component: WorkTake
    },
    // {
    //     path: '/workRate',
    //     component: WorkRate
    // }

]
const router = new VueRouter({
    routes,
    mode: 'history'
})


export default router
